package com.example.qqfake;

import android.view.View;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

public  class ViewHolder1 extends RecyclerView.ViewHolder {
    private TextView nameTextView;
    private TextView idTextView;

    public ViewHolder1(View itemView) {
        super(itemView);
        nameTextView = itemView.findViewById(R.id.find_show_name);
        idTextView = itemView.findViewById(R.id.find_show_id);
    }

    public void bind(User data) {
        nameTextView.setText(data.getUsername());
        idTextView.setText(Integer.toString(data.getId()));
    }
}
